import { createApp } from "vue";
import App from "./App.vue";
import route from "./route/route";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

import carCommponents from "./components/car/car.vue";
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);
app.component("carCommponents", carCommponents);
app.use(ElementPlus);

app.use(route);
app.use(pinia);
app.mount("#app");
